Skip to content

refactor: corrected DutyDefinitionSet to match Charon implementation#436

Merged
mskrzypkows merged 7 commits into
mainfrom
duty_defnition_set_corrected
May 26, 2026
Merged

refactor: corrected DutyDefinitionSet to match Charon implementation#436
mskrzypkows merged 7 commits into
mainfrom
duty_defnition_set_corrected

Conversation

@mskrzypkows
Copy link
Copy Markdown
Contributor

@mskrzypkows mskrzypkows commented May 22, 2026

Preparation for the: #179
In charon DutyDefinitionSet is keyed by pubilc key

@mskrzypkows mskrzypkows requested review from iamquang95 and varex83 May 22, 2026 13:28
@mskrzypkows mskrzypkows changed the title Corrected DutyDefinitionSet to match Charon implementation refactor: corrected DutyDefinitionSet to match Charon implementation May 22, 2026
Copy link
Copy Markdown
Collaborator

@emlautarom1 emlautarom1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you elaborate on why the change is needed? Why the struct -> trait conversion?

Remember to include a small summary for reviewers, or point to a specific ticket if appropriate.

@mskrzypkows
Copy link
Copy Markdown
Contributor Author

Ah, good point that's not really needed. I just need different key for the hashmap: public key instead of duty type.

Copy link
Copy Markdown
Collaborator

@emlautarom1 emlautarom1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with this PR, it's an existing issue that was not caught since we haven't ported the clients of this code (ex. core/scheduler). Will probably require further attention though based on usages.

Comment thread crates/core/src/types.rs
@mskrzypkows mskrzypkows merged commit 49f638c into main May 26, 2026
12 checks passed
@mskrzypkows mskrzypkows deleted the duty_defnition_set_corrected branch May 26, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants